using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Text;
using SubSonic;

namespace OpenProject.DataObjects
{
    /// <summary>
    /// Controller class for WorkItem
    /// </summary>
    public partial class WorkItemController
    {
        [DataObjectMethod(DataObjectMethodType.Select, true)]
        public WorkItemCollection FetchByProjectID(int projectId)
        {
            return new WorkItemCollection().Where(WorkItem.Columns.ProjectId, projectId).Load();
        }
    }
}
